<?php
Zend_Loader::loadClass("Model");

class ConstructionsMaterials extends Model
{
	protected $_name   = 'rel_construction_material';
	protected $_primary = array('id_construction', 'id_material'); 

	protected $_referenceMap    = array(
			'madeOf' => array(
					'columns'           => 'id_construction',
					'refTableClass'     => 'Constructions',
					'refColumns'        => 'id'
			),
			'partOf' => array(
					'columns'           => 'id_material',
					'refTableClass'     => 'Materials',
					'refColumns'        => 'id'
			));
}
?>